package com.zzy.面试;

public class TestExtends extends A{

	public static void main(String[] args) {
		TestExtends t = new TestExtends();
	}
	
	public TestExtends() {
		print();
	}
	
	@Override
	public void print() {
		super.print();
		System.out.println("TestExtends print");
	}
	
	

}

class A {
	 public A() {
		 print();
	 }

	public void print() {
		System.out.println("A print");
	}
}
